﻿namespace Alkitab
{
    using Alkitab.Language;
    using Microsoft.Phone.Controls;
    using System.Windows;

    public partial class PilihBahasa : PhoneApplicationPage
    {
        #region Constructors

        public PilihBahasa()
        {
            InitializeComponent();
        }

        #endregion Constructors

        #region Methods

        private void gantiEnglish_Click(object sender, RoutedEventArgs e)
        {
            Globals.changeLanguageK(2);
            MessageBoxResult m = MessageBox.Show(Labels.MSG_LangChanged);
            Globals.Settingan["languagek?"] = 2;
            Pilihan.needRefresh = true;
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiGerman_Click(object sender, RoutedEventArgs e)
        {
            Globals.changeLanguageK(3);
            MessageBoxResult m = MessageBox.Show(Labels.MSG_LangChanged);
            Globals.Settingan["languagek?"] = 3;
            Pilihan.needRefresh = true;
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        private void gantiIndo_Click(object sender, RoutedEventArgs e)
        {
            Globals.changeLanguageK(1);
            MessageBoxResult m = MessageBox.Show(Labels.MSG_LangChanged);
            Globals.Settingan["languagek?"] = 1;
            Pilihan.needRefresh = true;
            if (m == MessageBoxResult.OK) this.NavigationService.GoBack();
        }

        #endregion Methods
    }
}